package com.example.logistics_manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.logistics_manage.pojo.Orders;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrdersMapper extends BaseMapper<Orders> {
    IPage<Orders> findAllQueryPage(IPage<Orders> page);

    int updateOrders(Orders orders);

    IPage<Orders> findOrdersById(IPage<Orders> page,@Param("ordersId") Integer ordersId);

    IPage<Orders> findOrderByName(IPage<Orders> page,@Param("customerName")String customerName);

    IPage<Orders> findOrderByConsignor(IPage<Orders> page,@Param("consignor")String consignor);
}
